package com.ruoyi.app.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 捐赠记录管理对象 app_donations
 * 
 * @author ruoyi
 * @date 2025-11-06
 */
public class AppDonations extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 捐赠ID */
    private Long donationId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String activityName;

    /** 捐赠人姓名 */
    @Excel(name = "捐赠人姓名")
    private String donorName;

    /** 是否匿名 */
    @Excel(name = "是否匿名")
    private Integer isAnonymous;

    /** 捐赠金额 */
    @Excel(name = "捐赠金额")
    private BigDecimal amount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    /** 交易流水号 */
    @Excel(name = "交易流水号")
    private String transactionId;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 捐赠寄语 */
    @Excel(name = "捐赠寄语")
    private String donationMessage;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    public void setDonationId(Long donationId) 
    {
        this.donationId = donationId;
    }

    public Long getDonationId() 
    {
        return donationId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }

    public void setDonorName(String donorName) 
    {
        this.donorName = donorName;
    }

    public String getDonorName() 
    {
        return donorName;
    }

    public void setIsAnonymous(Integer isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public Integer getIsAnonymous() 
    {
        return isAnonymous;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }

    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }

    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }

    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }

    public void setDonationMessage(String donationMessage) 
    {
        this.donationMessage = donationMessage;
    }

    public String getDonationMessage() 
    {
        return donationMessage;
    }

    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("donationId", getDonationId())
            .append("orderNo", getOrderNo())
            .append("activityName", getActivityName())
            .append("donorName", getDonorName())
            .append("isAnonymous", getIsAnonymous())
            .append("amount", getAmount())
            .append("paymentMethod", getPaymentMethod())
            .append("paymentStatus", getPaymentStatus())
            .append("transactionId", getTransactionId())
            .append("paymentTime", getPaymentTime())
            .append("donationMessage", getDonationMessage())
            .append("createTime", getCreateTime())
            .append("refundTime", getRefundTime())
            .toString();
    }
}
